473,419 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

problem with urlencode and ampersand

Server.UrlEncode is not longer converting the ampersand in a string to
%26 so the value passed in the querystring gets truncated in the
following page. Is this a problem with IIS, does anyone know? I can't
find this reported anywhere else. I may just have to code around it.
Details:
link is created by the following code:
<a>href="GroupDetails.asp?groupName=<%=Server.URLE ncode(objRecordset("Group_Name"))%>">Group
Details</a>

If Group_Name contains an ampersand, this appears as & in the
querystring instead of being converted by URLEncode to %26. When the
groupName querystring value is used in the new page, it is truncated.
So "A & M AllStars" is truncated to "A".

However, this only occurs in 1 environment, in our dev environment it
works fine and converts ampersand so it doesn't muck up the
querystring. I can't find any obvious setting in IIS which would
affect this, but presumably it must be happening on the server and is
nothing to do with browser, browser version etc. I assume a security
patch has caused this. Any help would be appreciated.
Jul 19 '05 #1
0 4089

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Steve | last post by:
Hi All! I wonder if anyone could help me with the underlying logic of a problem I have. At the moment my working pages run like so ---------------------------------------------------------...
4
by: Steve | last post by:
> You can pass parameters in the URL for a POSTed form: > > ## page2 > <form method="post" action="page3.php?data=$urlencoded_data"> > <input type="text" name="address"> > <input...
1
by: Travis Pupkin | last post by:
How do you handle an ampersand (&) if it appears as part of the string in a querystring? Is there a way to tell the server it is not the beginning of a new variable being passed, but rather just a...
2
by: Terry | last post by:
Guys, I need to pass a string in my parameter list to another page.This contains the ampersand character. This is causing the part of the string after the ampersand to move into the second...
3
by: Rodusa | last post by:
I am having problems to use Response.Redirect(URL) with this URL below. The problem happens only with 1319& string URL =...
27
by: meltedown | last post by:
urlencode turns # into %23 When I sent it thru $_GET, it dissapears, along with anything that comes after it. for example: urlencode turns HOYDM_EXC_#4_NAT into HOYDM_EXC_%234_NAT When I...
5
by: =?Utf-8?B?TEtOZXdzR3JvdXBz?= | last post by:
Hi I have a list which pulls out items from a stored procedure. Unfortunately some of the items it pulls out have apostrophes. This info need to be placed in a URL but it keeps truncating at the...
4
by: Kiran Makam | last post by:
I am setting the content of a div dynamically using innerHTML property. If the content contains an ampersand, text after the ampersand is disappearing in IE6. It works properly in Firefox. This...
8
by: mdh | last post by:
Hi all, I have a file, whose path is: "/Users/m/k&R/test_file" How do I include the '&' in a string constant? ( I need this for the example on p162). I have tried to use the Hex notation...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.